package com.yixun.qfbao.model.enums;
/**
 * 公司类型字典表value 对应type：DictionaryTypeEnum 值：0002
 * @author JRJ
 *
 */
public enum CompanyEnum {
	/**
	 * 涠洲万豪
	 */
	WZWH("35e53fd8-b109-11e8-89a5-005056889b83", "温州万豪房产营销策划有限公司"),
	/**
	 * TEST环境
	 */
	TEST("2b53ec3f-9c83-11e8-b93d-000c2979eb04", "TEST环境"),
	;

	private String code;
	private String name;

	CompanyEnum(String code, String name) {
		this.code = code;
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public String getName() {
		return name;
	}

	public static CompanyEnum getByCode(String code) {
		for (CompanyEnum item : CompanyEnum.values()) {
			if (item.getCode().equals(code)) {
				return item;
			}
		}
		return null;
	}
}
